#include "ctechmanager.h"

CTechManager::CTechManager() {}

float CTechManager::getByCode(QString vNum, QString vCode)
{
    if (false == data.contains(vNum))
    {
        return 0.0;
    }
    return data[vNum]->getByCode(vCode);
}

float CTechManager::getByType(QString vNum, QString vType)
{
    if (true == vType.isEmpty())
    {
        return 0.0;
    }
    if (false == data.contains(vNum))
    {
        return 0.0;
    }
    return data[vNum]->getByType(vType);
}
